home *** CD-ROM | disk | FTP | other *** search
-
-
-
- sssseeeemmmm____ggggeeeettttvvvvaaaalllluuuueeee((((3333CCCC)))) sssseeeemmmm____ggggeeeettttvvvvaaaalllluuuueeee((((3333CCCC))))
-
-
-
- NNNNAAAAMMMMEEEE
- _ssss_eeee_mmmm______gggg_eeee_tttt_vvvv_aaaa_llll_uuuu_eeee - get the value of a posix named or unnamed semaphore
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_ssss_eeee_mmmm_aaaa_pppp_hhhh_oooo_rrrr_eeee_...._hhhh_>>>>
- _iiii_nnnn_tttt _ssss_eeee_mmmm______gggg_eeee_tttt_vvvv_aaaa_llll_uuuu_eeee_((((_ssss_eeee_mmmm______tttt _****_s_e_m_,,,, _iiii_nnnn_tttt _****_v_a_l_u_e_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _ssss_eeee_mmmm______gggg_eeee_tttt_vvvv_aaaa_llll_uuuu_eeee obtains the current value of the semaphore located at
- address _s_e_m, and stores it at address _v_a_l_u_e. The returned value should be
- viewed as a snapshot only, useful for debugging.
-
- If the number stored at _v_a_l_u_e is positive, then the semaphore is
- available. If the number stored at _v_a_l_u_e is zero, then the semaphore is
- not available. If the number stored at _v_a_l_u_e is negative, then the
- semaphore is not available and the absolute value of the number
- represents the number of processes currently blocked on the semaphore.
-
- The address _s_e_m may reside anywhere in the calling processes address
- space, but the process must have read and write access to _s_e_m.
-
- _ssss_eeee_mmmm______gggg_eeee_tttt_vvvv_aaaa_llll_uuuu_eeee will fail if the following is true:
-
- [EINVAL] The semaphore located at address _s_e_m is not a valid posix
- named or unnamed semaphore.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- sem_init(3C), sem_destroy(3C), sem_getvalue(3C), sem_post(3C),
- sem_wait(3C), sem_trywait(3C), sem_open(3C), sem_close(3C),
- sem_unlink(3C),
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned to the calling
- process. Otherwise, a value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to
- indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-